home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / gcc / ixemlsrc.lha / ixemul / general / Makefile.in < prev    next >
Makefile  |  1996-03-13  |  2KB  |  98 lines

  1. #### Start of system configuration section. ####
  2.  
  3. srcdir =    @srcdir@
  4.  
  5. ifeq ($(srcdir),.)
  6. srcdir = ../..
  7. endif
  8.  
  9. VPATH :=    $(srcdir)
  10.  
  11.  
  12. # Common prefix for machine-independent installed files.
  13. prefix =    @prefix@
  14.  
  15. # Common prefix for machine-dependent installed files.
  16. exec_prefix =    @exec_prefix@
  17.  
  18. bindir =    $(exec_prefix)/bin
  19. libdir =    $(exec_prefix)/Sys/libs
  20.  
  21. INSTALL =    @INSTALL@
  22. INSTALL_DATA =    @INSTALL_DATA@
  23.  
  24. CC =        @CC@
  25.  
  26. CFLAGS =    @CFLAGS@
  27. LDFLAGS =    @LDFLAGS@
  28.  
  29. RANLIB =    @RANLIB@
  30. AR =        ar
  31.  
  32. #### End system configuration section ####
  33.  
  34. ifdef CATENATE
  35. DEBUG_FLAG =    -g
  36. else
  37. DEBUG_FLAG =    
  38. endif
  39.  
  40. # I *love* GNU make!
  41. define catenate
  42. /bin/echo -n creating $@...
  43. /bin/echo "$(^:%=#include \"%\"\n)" >$@
  44. /bin/echo done
  45. endef
  46.  
  47. FLAVOR_CFLAGS =    -m$(CPU) -m$(FPU)
  48. ALL_CFLAGS =    $(CFLAGS) $(FLAVOR_CFLAGS) $(OTHER_CFLAGS) $(DEBUG_FLAG) $(INCS)
  49.  
  50. INCS =        -I$(srcdir) -I$(srcdir)/../library -I$(srcdir)/../include
  51. LIB =        libgeneral.a
  52.  
  53. .c.o:
  54.         $(CC) $(ALL_CFLAGS) -c $< -o $@
  55.  
  56. SRC =        alarm.c clock.c crypt.c ctype_.c difftime.c errlst.c \
  57.         fnmatch.c getlogin.c getmntinfo.c getwd.c inet_network.c \
  58.         insque.c isctype.c isinf.c isnan.c mktemp.c pause.c \
  59.         psignal.c raise.c random.c remove.c remque.c setjmp.c \
  60.         setjmperr.c siginterrupt.c siglist.c signal.c sigsetjmp.c \
  61.         sigsetops.c sleep.c termios.c time.c times.c ualarm.c \
  62.         uname.c unvis.c usleep.c vis.c wait.c wait3.c waitpid.c
  63.  
  64. OBJ =        $(SRC:.c=.o)
  65.  
  66. A4_SRC =    glob.c
  67.  
  68. A4_OBJ =    $(A4_SRC:.c=.o)
  69.  
  70. ifdef CATENATE
  71. ALL =        all.o a4.o arith.o
  72. else
  73. ALL =        $(OBJ) $(A4_OBJ) arith.o
  74. endif
  75.  
  76. $(LIB):        $(ALL)
  77.         rm -f $@
  78.         $(AR) rv $@ $(ALL)
  79.         $(RANLIB) $@
  80.  
  81. all.c:        $(SRC)
  82.         @$(catenate)
  83.  
  84. a4.c:        $(A4_SRC)
  85.         @$(catenate)
  86.  
  87. $(A4_OBJ) a4.o:    %.o: %.c
  88.         $(CC) $(ALL_CFLAGS) -ffixed-a4 -c $< -o $@
  89.  
  90. arith.o:    arith.c
  91.         $(CC) $(ALL_CFLAGS) -DALL -c $< -o $@
  92.  
  93. clean:
  94.         rm -rf 680?0
  95.  
  96. clobber:    clean
  97.         rm -f Makefile
  98.